package com.example.dao;

import com.example.entity.Hiv;
import com.example.entity.Jsb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface JsbRepository extends JpaRepository<Jsb,Long> {
    @Query(value = "select * from jsb where name like %?1%", nativeQuery = true)
    Page<Jsb> findByNameLike(String name, Pageable pageRequest);
}
